package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuXin
 * @since 2018-11-14
 */
@TableName("jxc_contract_info")
public class ContractInfo extends Model<ContractInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 合同编码
     */
    @TableField("contract_code")
    private String contractCode;
    /**
     * 合同类型 1 ->采购合同 2->销售合同
     */
    @TableField("contract_type")
    private Integer contractType;
    /**
     * 合同名称
     */
    @TableField("contract_name")
    private String contractName;
    /**
     * 合同金额
     */
    @TableField("contract_amount")
    private BigDecimal contractAmount;
    /**
     * 1 ->电汇 2->承兑 3->电汇+承兑
     */
    @TableField("payment_type")
    private Integer paymentType;
    /**
     * 币种
     */
    private String currency;
    /**
     * 部门id
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 开始日期
     */
    @TableField("begin_date")
    private Date beginDate;
    /**
     * 截止日期
     */
    @TableField("end_date")
    private Date endDate;
    /**
     * 收付类型1->收款 2->付款 3->其它
     */
    private Integer receiptsAndPaymentType;
    /**
     * 甲方
     */
    @TableField("first_party")
    private String firstParty;
    /**
     * 甲方责任人
     */
    @TableField("first_party_person")
    private String firstPartyPerson;
    /**
     * 乙方
     */
    @TableField("second_party")
    private String secondParty;
    /**
     * 乙方责任人
     */
    @TableField("second_party_person")
    private String secondPartyPerson;
    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 删除标记（0：正常；1：删除）
     */
    @TableField("del_flag")
    private String delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public Integer getContractType() {
        return contractType;
    }

    public void setContractType(Integer contractType) {
        this.contractType = contractType;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public BigDecimal getContractAmount() {
        return contractAmount;
    }

    public void setContractAmount(BigDecimal contractAmount) {
        this.contractAmount = contractAmount;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getReceiptsAndPaymentType() {
        return receiptsAndPaymentType;
    }

    public void setReceiptsAndPaymentType(Integer receiptsAndPaymentType) {
        this.receiptsAndPaymentType = receiptsAndPaymentType;
    }

    public String getFirstParty() {
        return firstParty;
    }

    public void setFirstParty(String firstParty) {
        this.firstParty = firstParty;
    }

    public String getFirstPartyPerson() {
        return firstPartyPerson;
    }

    public void setFirstPartyPerson(String firstPartyPerson) {
        this.firstPartyPerson = firstPartyPerson;
    }

    public String getSecondParty() {
        return secondParty;
    }

    public void setSecondParty(String secondParty) {
        this.secondParty = secondParty;
    }

    public String getSecondPartyPerson() {
        return secondPartyPerson;
    }

    public void setSecondPartyPerson(String secondPartyPerson) {
        this.secondPartyPerson = secondPartyPerson;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ContractInfo{" +
        "id=" + id +
        ", contractCode=" + contractCode +
        ", contractType=" + contractType +
        ", contractName=" + contractName +
        ", contractAmount=" + contractAmount +
        ", paymentType=" + paymentType +
        ", currency=" + currency +
        ", deptId=" + deptId +
        ", userId=" + userId +
        ", beginDate=" + beginDate +
        ", endDate=" + endDate +
        ", receiptsAndPaymentType=" + receiptsAndPaymentType +
        ", firstParty=" + firstParty +
        ", firstPartyPerson=" + firstPartyPerson +
        ", secondParty=" + secondParty +
        ", secondPartyPerson=" + secondPartyPerson +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", remarks=" + remarks +
        ", delFlag=" + delFlag +
        "}";
    }
}
